<?php

class Jf_Config {

    public static function factory($type, $file, $position = null) {
        $configKey = md5($file);
        $config = 'Zend_Config_' . ucfirst($type);
        $config = new $config($file, $position);
        return $config->toArray();
    }
}